import request from '@/utils/request'
export function promotionByget(name) {
 return request({
  url: '/system/wine-category/wineByKey',
  method: 'get',
  params: {
   name
  }
 })
} export function addActive(data) {
 return request({
  url: '/system/promotion/addActive',
  method: 'post',
  data
 })
}
export function activelist(searchKeyword) {
 return request({
  url: '/system/promotion/list',
  method: 'get',
  params: {
   searchKeyword
  }
 })
}
export function delActive(promotionId) {
 return request({
  url: '/system/promotion/delActive',
  method: 'post',
  data:{promotionId}
 })
}
export function updateActive(data) {
 return request({
  url: '/system/promotion/updateActive',
  method: 'post',
  data
 })
}